let gaode = {
    "version": 8,
    "sources": {
        "raster-tiles": {
            "type": "raster",
            "tiles": [
                "http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}"
            ],
            "tileSize": 256
        }
    },
    "layers": [{
        "id": "simple-tiles",
        "type": "raster",
        "source": "raster-tiles",
        "minzoom": 0,
        "maxzoom": 22
    }]
};

const mapStyle={
    "version": 8,
    "sources": {
        "imgorigin": {
            "type": "raster",
            "tiles": [
                // "/tile-server/v1?layer=img_world_web_mbtiles_v2&TileMatrix={z}&TileCol={x}&TileRow={y}"
                "https://t0.tianditu.gov.cn/ter_w/wmts?tk=1e5a8aeb87fbf336c3d7780f91b7fdfc&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ter&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}"
            ]
        },
        "tdt_img": {
            "type": "raster",
            "tiles": [
                "https://t0.tianditu.gov.cn/img_w/wmts?tk=1e5a8aeb87fbf336c3d7780f91b7fdfc&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}"
            ],
        },
        "tdt_vec": {
            "type": "raster",
            "tiles": [
                "https://t0.tianditu.gov.cn/vec_w/wmts?tk=1e5a8aeb87fbf336c3d7780f91b7fdfc&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}"
            ],
        },
        "tdt_cva": {//矢量注记
            "type": "raster",
            "tiles": [
                "https://t0.tianditu.gov.cn/cva_w/wmts?tk=1e5a8aeb87fbf336c3d7780f91b7fdfc&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=tiles"

            ],
        },
        "tdt_cia": {//影像注记
            "type": "raster",
            "tiles": [
                "https://t0.tianditu.gov.cn/cia_w/wmts?tk=1e5a8aeb87fbf336c3d7780f91b7fdfc&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=tiles"
            ],
        },
        "tdt_cta": {//地形注记
            "type": "raster",
            "tiles": [
                "https://t0.tianditu.gov.cn/cta_w/wmts?tk=1e5a8aeb87fbf336c3d7780f91b7fdfc&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cta&STYLE=default&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=tiles"
            ],
        },
        "background": {
            "type": "raster",
        }
    },
    "layers": [
        {
            "id": "background", //背景图层
            "type": "background",
            "paint": {
                "background-color": "#fff"
            }
        },
        {
            "id": "tdt_terr", //地形图层
            "type": "raster",
            "source": "imgorigin",
            "source-layer": "bejing_img",
            layout: {
                visibility: 'visible',
            },
        },
        {
            "id": "tdt_vector", //矢量图层
            "type": "raster",
            "source": "tdt_vec",
            "source-layer": "bejing_img",
            layout: {
                visibility: 'none',
            },
        },
        {
            "id": "tdt_satellite", //影像图层
            "type": "raster",
            "source": "tdt_img",
            "source-layer": "bejing_img",
            layout: {
                visibility: 'none',
            },
        },
        {
            "id": "tdt_cvatest",//矢量注记图层
            "type": "raster",
            "source": "tdt_cva",
            "source-layer": "bejing_img",
            layout: {
                visibility: 'none',
            },
        },
        {
            "id": "tdt_ciatest",//影像注记图层
            "type": "raster",
            "source": "tdt_cia",
            "source-layer": "bejing_img",
            layout: {
                visibility: 'none',
            },
        },
        {
            "id": "tdt_ctatest",//地形注记图层
            "type": "raster",
            "source": "tdt_cta",
            "source-layer": "bejing_img",
            layout: {
                visibility: 'visible',
            },
        },
    ]
}
const modelUrl ={
    su7:"/public/assets/models/gltf/su7.glb",
    hdr:"/public/assets/models/hdr/venice_sunset_1k.hdr",    
    floorTexture:"/public/assets/models/images/floor1.jpg",
    background:"/public/assets/models/images/background.svg"
}

